<?php

$this->breadcrumbs = array(
	$model->label(2) => array('index'),
	Yii::t('app', 'Manage'),
);

$this->menu = array(
		array('label'=>'New', 'url'=>array('create'),
            'linkOptions'=> array('class' => 'glyphicons circle_plus tb-gray'),
        ),
        array('label'=>'Export to Excel', 'url'=>array('excelexport'),
            'linkOptions'=> array('class' => 'glyphicons disk_export tb-gray'),
        ),
        array('label'=>'Generate PDF', 'url'=>array('pdfexport'),
            'linkOptions'=> array('class' => 'glyphicons print tb-gray'),
        ),
	);

?>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id' => 'tag-grid',
	'dataProvider' => $model->search(),
	'filter' => $model,
    'summaryText' => '',
    'selectionChanged'=>"function(id){window.location='" . Yii::app()->urlManager->createUrl('tag/update', array('id'=>'')) . "' + $.fn.yiiGridView.getSelection(id);}",
	'columns' => array(
		'id',
        array(
            'class' => 'CButtonColumn',
            'template' => '{update}&nbsp;{delete}',
            'buttons' => array(
                'update' => array(
                    'imageUrl'=>'',
                    'label' => '',
                    'options'=>array('class'=>'table-icon-1 glyphicons pencil grid-gray'),
                ),
                'delete' => array(
                    'imageUrl'=>'',
                    'label' => '',
                    'options'=>array('class'=>'table-icon-2 glyphicons circle_remove grid-gray'),
                ),
            )
        ),

	),
)); ?>